package com.hr.LandR.service;

import java.util.List;
import com.hr.LandR.domain.LeadershipRelationship;
import org.apache.ibatis.annotations.Param;

/**
 * 负责人关系表Service接口
 * 
 * @author guan
 * @date 2024-08-01
 */
public interface ILeadershipRelationshipService 
{
    /**
     * 查询负责人关系表
     * 
     * @param useridSubordinate 负责人关系表主键
     * @return 负责人关系表
     */
    public LeadershipRelationship selectLeadershipRelationshipByUseridSubordinate(Long useridSubordinate);

    /**
     * 查询负责人关系表列表
     * 
     * @param leadershipRelationship 负责人关系表
     * @return 负责人关系表集合
     */
    public List<LeadershipRelationship> selectLeadershipRelationshipList(LeadershipRelationship leadershipRelationship);

    /**
     * 新增负责人关系表
     * 
     * @param leadershipRelationship 负责人关系表
     * @return 结果
     */
    public int insertLeadershipRelationship(LeadershipRelationship leadershipRelationship);

    /**
     * 修改负责人关系表
     * 
     * @param leadershipRelationship 负责人关系表
     * @return 结果
     */
//    public int updateLeadershipRelationship(Long useridSubordinate,Long useridLeader);

    /**
     * 批量删除负责人关系表
     * 
     * @param useridSubordinates 需要删除的负责人关系表主键集合
     * @return 结果
     */
    public int deleteLeadershipRelationshipByUseridSubordinates(Long[] useridSubordinates);

    /**
     * 删除负责人关系表信息
     * 
     * @param useridSubordinate 负责人关系表主键
     * @return 结果
     */
    public int deleteLeadershipRelationshipByUseridSubordinate(Long useridSubordinate);


    /**
     * 查询员工上下级
     * @param userId
     * @return
     */
    LeadershipRelationship showLeadershipRelationship(@Param("userId") Long userId);
}
